package lol.clann.minecraft.springboot.api.bukkit.utils;

import org.bukkit.Location;

/**
 *
 * @author pyz
 * @date 2019/5/13 12:36 AM
 */

public interface TileEntityUtils {
    /**
     * 获取TileEntity的位置
     *
     * @param tileEntity
     * @return
     */
    Location getLocation(Object tileEntity);

    /**
     * 序列化成NBTagCompound
     *
     * @param tileEntity
     * @return
     */
    Object toNBTTagCompound(Object tileEntity);

    /**
     * 用NBTTagCompound更新TileEntity
     *
     * @param nmsTileEntity
     * @param nbtTagCompound
     */
    void applyNBTTagCompound(Object nmsTileEntity, Object nbtTagCompound);
}
